package co.edu.ucatolica.sislab.users;

import co.edu.ucatolica.sislab.persistence.dto.UserDTO;
import co.edu.ucatolica.sislab.users.domain.UserBean;
import co.edu.ucatolica.sislab.users.domain.UserDataBean;

public class UserUtils {

	public static UserDTO builtUserDTO(UserBean userBean) {
		UserDTO userDTO = new UserDTO();
		userDTO.setNombre(userBean.getNombre());
		userDTO.setCodigo(userBean.getCodigo());
		userDTO.setIdentificacion(userBean.getIdentificacion());
		userDTO.setEstado(userBean.getEstado());
		userDTO.setTelefono(userBean.getTelefono());
		userDTO.setTipoId(userBean.getTipoId());
		userDTO.setLogin(userBean.getLogin());
		userDTO.setPassword(userBean.getPassword());
		return userDTO;
	}

	public static UserDTO builtUserDTO(UserDataBean userDataBean) {
		UserDTO userDTO = new UserDTO();
		userDTO.setCodigo(userDataBean.getCodigo());
		return userDTO;
	}

}
